home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 120 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: martijnl@xs4all.nl (Martijn Lievaart)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland C++ linker error
  5. Date: 2 Jan 1996 15:57:10 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4cbkkm$dra@news.xs4all.nl>
  8. References: <4c1ek2$24d@ixnews7.ix.netcom.com>
  9. NNTP-Posting-Host: mas01-15.dial.xs4all.nl
  10. X-Newsreader: WinVN 0.99.6
  11.  
  12. In article <4c1ek2$24d@ixnews7.ix.netcom.com>, endorfin@ix.netcom.com says...
  13. >
  14. >
  15. >Whenever I link programs with TLINK I get an error message saying
  16. >Segment _TEXT exceeds 64K.
  17. >
  18. >How do I get rid of this error?
  19. >
  20. >Thanx in advance
  21.  
  22. Use large or compact model. _TEXT is your 'default data segment' and it's not 
  23. that big (64K max. but the stack, and some other things are in there too). 
  24. Using these models moves your data to seperate segments, giving you much more 
  25. memory. (actually it's a little more complicated but this is the gist of it).
  26.  
  27. Or you could make that one big array far, i.e.
  28.  
  29.     BigStructType    LargeArray[1000];
  30.  
  31. If some of you're data (arrays) are bigger than 64K things get even more 
  32. complicated and you could switch to huge model.
  33.  
  34. Best of all, get a DOS-extender or start using unix, than you'll never have to 
  35. worry about these horrors (but may get others, though lesser, in return).
  36.  
  37. Hope this helps
  38.  
  39.